import Vue from 'vue'
import App from './App.vue'
import router from './router'

import axios from "axios";
import {getRequest, postRequest} from "network/request";


Vue.config.productionTip = false;

// 将在request.js中封装的请求挂载到vue原型
Vue.prototype.postRequest = postRequest;
Vue.prototype.getRequest = getRequest;
// axios请求根路径
axios.defaults.baseURL = '/api';


new Vue({
  router,
  render: function (h) { return h(App) }
}).$mount('#app');
